/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tools;

/**
 *
 * @author Rezha
 */
public class constants {

    //mode
    public static int LOGIN_MODE = 1;
    public static int SYNC_MODE = 2;
    public static int DOWNLOAD_MODE = 3;
    public static int UPLOAD_MODE = 4;
    //timeout variable
    public static int timeout = 20000; // in milisecond
    public static int maxConnectAttemp = 10;

    //directory variable
    public static String rootDir = "C:\\xampp\\htdocs\\Progin5Web\\UserData";
    //server protocol
    public static String serverReady = "Server Ready";
    public static String serverNotReady = "Server Not Ready";
    public static String clientExist = "Client Exist";
    public static String readyToGetFile = "Siap kk";
    
    //client protocol
    public static String clientLoginMode = "TUBES5PROGIN LOGIN_MODE";
    public static String clientSyncMode = "TUBES5PROGIN SYNC_MODE";
    public static String clientDownloadMode = "TUBES5PROGIN DOWNLOAD_MODE";
    public static String clientUploadMode = "TUBES5PROGIN UPLOAD_MODE";
    //error control
    public static String FileTooLarge = "File Too Large";
    public static String readyDownload = "Ready To Download";
    public static String finishedDownload = "Finish Downloading@@";

    public static int maxSize = 5000; // 5KB
    public static int delay = 1000;
    public static int port = 9876;

}
